/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.fatecpg.songs.dao;

import br.com.fatecpg.songs.entity.util.Searchable;
import java.util.List;
import org.hibernate.criterion.Criterion;
/**
 *
 * @author Marcos
 * Interface que garante que os daos de os objetos do modelo 
 * que possuírem consulta, implementem o método para tal
 */
public interface SearchableDAO<E extends Searchable> {
    public List<E> search(String searchedWord);
    
    public Criterion getSearchCriterion(String searchedWord);
}
